home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 394 < prev    next >
Internet Message Format  |  1996-08-06  |  2KB

  1. Path: monkeys.com!not-for-mail
  2. From: rfg@monkeys.com (Ronald F. Guilmette)
  3. Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp,comp.std.c
  4. Subject: Re: float != float and floats as return types
  5. Date: 15 Feb 1996 01:28:49 -0800
  6. Organization: Infinite Monkeys & Co.
  7. Message-ID: <4fuuch$6db@segfault.monkeys.com>
  8. References: <4ej9lb$mpc@fu-berlin.de> <TANMOY.96Feb1164022@qcd.lanl.gov> <4ettr4$al5@der.twinsun.com> <TANMOY.96Feb3105644@qcd.lanl.gov>
  9. NNTP-Posting-Host: segfault.monkeys.com
  10.  
  11. In article <TANMOY.96Feb3105644@qcd.lanl.gov>,
  12. Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov> wrote:
  13. >
  14. >Note that I have added comp.std.c to the list of newsgroups. 
  15. >
  16. >In article <4ettr4$al5@der.twinsun.com> eggert@twinsun.com (Paul
  17. >Eggert) writes: 
  18. >
  19. >   That being the case, I think it wise for users not to rely on the fine
  20. >   points here, and my advice to the GCC implementers is to hold off on
  21. >   changing GCC's behavior until the C Standard committee acts.
  22. >
  23. >I, on the other hand, think that the current standard  ought to be
  24. >interpreted to mean that truncation is needed. Claiming that it is not
  25. >needed is relying on the fine points. That is purely a personal
  26. >opinion. 
  27.  
  28. No.  It is just plain right.
  29.  
  30. The standard is entirely clear that assignment and casting are two cases
  31. where a compiler is required to change the precision/representation of
  32. an FP value exactly as called for by the type of the cast or by the type
  33. of the expression on the left hand side of the assignment.
  34.  
  35. There is nothing in the least bit vague about this.  Those are the rules.
  36. -- 
  37.  
  38. -- Ron Guilmette, Roseville, CA -------- Infinite Monkeys & Co. ------------
  39. ---- E-mail: rfg@monkeys.com ----------- Purveyors of Compiler Test Suites -
  40. ------ Copyright (c) 1996 by Ronald F. Guilmette; All rights reserved. -----
  41.